package com.zhizhi.common.constant;

/**
 * @Auther: Mr.Yu
 * @Date: 2020/08/28/11:15
 * @Description: 验证
 */
public class VerificationConst {

    /**
     * 手机号验证规则
     */
    public static final String MOBILE_PHONE_REGEXP = "^1[0-9]{10}";

    /**
     * 固定电话验证规则
     */
    public static final String TELE_PHONE_REGEXP = "^$|^0\\d{2,3}-[1-9]\\d{6,7}$";

    /**
     * 邮箱验证规则
     */
    public static final String EMAIL_REGEXP = "^$|^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";

    /**
     * 身份证号码校验
     */
    public static final String CARDID_REGEXP =  "(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|" +
            "(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)";


}
